<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="https://webapi.amap.com/maps?v=1.4.15&key=f16c7b43eed487c62c94a0b747779737"></script>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      #container {
        width: 100vw;
        height: 100vh;
      }
    </style>
  </head>
  <body>
    <!-- 2、设置一个挂载地图的DOM -->
    <div id="container"></div>
    <script type="text/javascript">
      var map = new AMap.Map("container", {
        center: [117.000923, 36.675807],
        zoom: 11,
      })
    </script>
  </body>
</html>
